package dao

// 这是 Wechat 的全局公开dao对象
var WechatDao = wechatDao{}

// 注意:这是 Wechat 的私有dao对象
type wechatDao struct {
	Obj             Wechat
	Insert          func(arg Wechat) int64                             //插入一条记录
	Update          func(arg Wechat) int64                             //更新一条记录
	Delete          func(arg Wechat) int64                             //删除一条记录
	Select          func(arg Wechat) Wechat                            //获取一条记录
	GetUserBySess   func(sess string) Wechat                           `arg:"sess"`
	Bind            func(openId string, memberId int, sess string) int `arg:"open_id,member_id,sess"`
	GetUserByOpenid func(openId string) Wechat                         `arg:"open_id"`
}
